package com.easy.easy.dao;

import com.easy.easy.bean.User;
import com.easy.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserDao {
    int add(@Param("user")User user);
    int edit(@Param("user")User user);
    int delete(@Param("id")int id);
    User getByID(@Param("id")int id);
    List<User> getList(@Param("page") Page page,@Param("text") String text);
    List<User> getChildren(@Param("id") int id);
    int getCount(@Param("text") String text);
    User getUserByUsername(@Param("username") String username);

}
